<?php
$username=$_GET['username'];
$seed=$_GET['seed'];
$db = new DBManager ( 'localhost', 'root', '', 'iumus' );
$query="UPDATE utente SET activated=0 WHERE username='".$username."' AND activated=".$seed.";";
$result=$db->executeQuery ($query);
if(mysql_num_rows($result)==0){
	header("Location : error.php?username=".$username); 
}
?>